package components.resultLayer
{
	import flash.display.BitmapData;
	import flash.geom.Matrix;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class clt_personBitmap extends clt_elemBitmap {
		public function clt_personBitmap(a_elemName:String, bitmapData:BitmapData, a_data: Object) {
			super(a_elemName, bitmapData, a_data);
		}
		
		override protected function calcElemMatrix(maskInfo: Object, a_faceRect: Rectangle, scale: Number, isOffset: Boolean=true): Matrix {
			var matrix: Matrix = transform.matrix.clone();
			return matrix;	
		}
		
		override public function updateTransform(rb:clt_resultBitmap, offset:Point=null, scale:Number=1):void {
			var matrix: Matrix = new Matrix();
			matrix.scale(scale, scale);
			if (offset) matrix.translate(-offset.x, -offset.y);
			matrix.concat(transform.matrix);
			
			transform.matrix = matrix;
		}
		
/*		
		override public function draw(bmd: BitmapData, facePercent: Number, maskInfo: Object, a_faceRect: Rectangle): void {
			var mat: Matrix = getMatrix(maskInfo, a_faceRect, (bmd.width * facePercent) / (maskInfo.ears[2] - maskInfo.ears[0]));
			var scale: Number = bmd.width/bitmapData.width;
			mat.scale(scale, scale);
			bmd.draw(this, mat, colorCorrect);
		}
*/		
	}
}